package test;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import com.huiren.meta.SearchMeta;
import com.huiren.service.OrderService;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = {
		"classpath:conf/spring/application-webservice.xml",
		"classpath:conf/spring/application-dataSource.xml",
		"classpath:conf/spring/application-common.xml",
		"classpath:conf/spring/application-service.xml" })
public class OrderSerivce extends AbstractJUnit4SpringContextTests {

	@Autowired
	private OrderService orderServiceImpl;

	@Test
	public void testPurOrderService() {
		SearchMeta searchMeta = new SearchMeta();
		try {
			System.out.println(orderServiceImpl.selectOrder(searchMeta).size());
		} catch (Exception e) {
			e.printStackTrace();
		}

	}

}
